home *** CD-ROM | disk | FTP | other *** search
- REM $INCLUDE: 'fastgraf.bi'
-
- DEFINT A-Z
-
- REM initialize the video environment
-
- NewMode = FGbestmode(320,200,1)
- IF NewMode < 0 OR NewMode = 12 THEN
- PRINT "This program requires a 320 x 200 color graphics mode."
- STOP
- END IF
- OldMode = FGgetmode
- FGsetmode NewMode
-
- REM move the object across the screen
-
- FOR X = -20 TO 315 STEP 5
- FGsetcolor 10
- FGclprect X, X+19, 95, 104
- FGwaitfor 1
- FGsetcolor 0
- FGclprect X, X+19, 95, 104
- NEXT
-
- REM restore the original video mode and return to DOS
-
- FGsetmode OldMode
- FGreset
-
- END